@echo off
setlocal
for /f "delims=" %%d in ('dir /ad /s /b ^| sort /r') do (
  rmdir "%%d" 2>nul
)
echo 删除空文件夹操作完成。
endlocal
